<?php
    $hide=$_GET["hide"];
    if($hide=="1"){
        $conn=mysqli_connect("127.0.0.1","root","","h52101");
        mysqli_query($conn,"SET NAMES utf8");
    
        $sql="SELECT * FROM lunbo";
    
        $result=mysqli_query($conn,$sql);
        
        $arr=[];
        while(($row=mysqli_fetch_assoc($result))!=null){
            array_push($arr,$row);
        }
        echo $_GET["callback"]."(".JSON_encode($arr).")";
    }
   
  
   if($hide=="2"){
       $conn=mysqli_connect("127.0.0.1","root","","h52101");
       mysqli_query($conn,"SET NAMES utf8");
       $sql="SELECT * FROM zhuce";
       $result=mysqli_query($conn,$sql);
       $arr=[];
       while(($row=mysqli_fetch_assoc($result))!=null){
        array_push($arr,$row);
    }
      echo $_GET["callback"]."(".JSON_encode($arr).")";
    
   
   }

?>